<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <rich:panel>
        <f:facet name="header">Licoes Details</f:facet>


        <s:decorate id="descricao" template="layout/display.xhtml">
            <ui:define name="label">Descricao</ui:define>
            <h:outputText value="#{licoesHome.instance.descricao}"/>
        </s:decorate>

        <s:decorate id="titulo" template="layout/display.xhtml">
            <ui:define name="label">Titulo</ui:define>
            <h:outputText value="#{licoesHome.instance.titulo}"/>
        </s:decorate>

        <div style="clear:both"/>

    </rich:panel>

    <div class="actionButtons">

        <s:button view="/LicoesEdit.xhtml"
                    id="edit"
                 value="Edit"/>

        <s:button view="/#{empty licoesFrom ? 'LicoesList' : licoesFrom}.xhtml"
                    id="done"
                 value="Done"/>

    </div>

    <rich:tabPanel switchType="ajax">

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Areaimpactada</h:panelGroup>
        </f:facet>
    <div class="association" id="areaimpactadaParent">

        <h:outputText value="There is no areaimpactada associated with this licoes."
                   rendered="#{licoesHome.instance.areaimpactada == null}"/>

        <rich:dataTable var="_areaimpactada"
                   value="#{licoesHome.instance.areaimpactada}"
                rendered="#{licoesHome.instance.areaimpactada != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="areaimpactadaTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_areaimpactada.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_areaimpactada.nome}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewareaimpactada"
                     value="View"
                      view="/Areaimpactada.xhtml">
                    <f:param name="areaimpactadaId"
                           value="#{_areaimpactada.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Projeto</h:panelGroup>
        </f:facet>
    <div class="association" id="projetoParent">

        <h:outputText value="There is no projeto associated with this licoes."
                   rendered="#{licoesHome.instance.projeto == null}"/>

        <rich:dataTable var="_projeto"
                   value="#{licoesHome.instance.projeto}"
                rendered="#{licoesHome.instance.projeto != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="projetoTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_projeto.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Statusprojeto id</f:facet>
                <h:outputText value="#{_projeto.statusprojeto.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Usuario id</f:facet>
                <h:outputText value="#{_projeto.usuario.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Cliente</f:facet>
                <h:outputText value="#{_projeto.cliente}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Custoprevisto</f:facet>
                <h:outputText value="#{_projeto.custoprevisto}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Datacriacao</f:facet>
                <h:outputText value="#{_projeto.datacriacao}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Fim</f:facet>
                <h:outputText value="#{_projeto.fim}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Fimprevisto</f:facet>
                <h:outputText value="#{_projeto.fimprevisto}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Inicio</f:facet>
                <h:outputText value="#{_projeto.inicio}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Justificativa</f:facet>
                <h:outputText value="#{_projeto.justificativa}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Necessidades</f:facet>
                <h:outputText value="#{_projeto.necessidades}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_projeto.nome}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Orcamento</f:facet>
                <h:outputText value="#{_projeto.orcamento}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Premissas</f:facet>
                <h:outputText value="#{_projeto.premissas}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Produto</f:facet>
                <h:outputText value="#{_projeto.produto}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Responsabilidadesgp</f:facet>
                <h:outputText value="#{_projeto.responsabilidadesgp}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Restricoes</f:facet>
                <h:outputText value="#{_projeto.restricoes}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Resumo</f:facet>
                <h:outputText value="#{_projeto.resumo}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewprojeto"
                     value="View"
                      view="/Projeto.xhtml">
                    <f:param name="projetoId"
                           value="#{_projeto.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Prioridadelicao</h:panelGroup>
        </f:facet>
    <div class="association" id="prioridadelicaoParent">

        <h:outputText value="There is no prioridadelicao associated with this licoes."
                   rendered="#{licoesHome.instance.prioridadelicao == null}"/>

        <rich:dataTable var="_prioridadelicao"
                   value="#{licoesHome.instance.prioridadelicao}"
                rendered="#{licoesHome.instance.prioridadelicao != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="prioridadelicaoTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_prioridadelicao.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_prioridadelicao.nome}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Valor</f:facet>
                <h:outputText value="#{_prioridadelicao.valor}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewprioridadelicao"
                     value="View"
                      view="/Prioridadelicao.xhtml">
                    <f:param name="prioridadelicaoId"
                           value="#{_prioridadelicao.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Impactolicao</h:panelGroup>
        </f:facet>
    <div class="association" id="impactolicaoParent">

        <h:outputText value="There is no impactolicao associated with this licoes."
                   rendered="#{licoesHome.instance.impactolicao == null}"/>

        <rich:dataTable var="_impactolicao"
                   value="#{licoesHome.instance.impactolicao}"
                rendered="#{licoesHome.instance.impactolicao != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="impactolicaoTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_impactolicao.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_impactolicao.nome}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewimpactolicao"
                     value="View"
                      view="/Impactolicao.xhtml">
                    <f:param name="impactolicaoId"
                           value="#{_impactolicao.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>
</rich:tabPanel>
</ui:define>

</ui:composition>
